<template>
	<el-table :data="logTable">
		<el-table-column width="120" property="payment_method_name" align="center" label="付款方式"></el-table-column>
		<el-table-column width="120" property="money" align="center" label="付款金额">
			<template #default="scope">
				￥{{ getMoneyByMinute(scope.row.money) }}
			</template>
		</el-table-column>
		<el-table-column width="140" property="create_at" align="center" label="付款时间">
			<template #default="scope">
				{{ timeFormat(scope.row.create_at) }}
			</template>
		</el-table-column>
	</el-table>
</template>

<script>
export default {
	name: "order-pay-log-table",
	props: {
		logTable: { type: Array, default: () => [] }
	},
	methods: {
		getMoneyByMinute (_value) {
			return this.$TOOL.getMoneyByMinute(_value)
		},
		timeFormat (_value) {
			return this.$TOOL.dateFormat((_value * 1000), 'YYYY-MM-DD HH:mm:ss')
		}
	}
};
</script>

<style scoped>

</style>
